package com.lloydfinch.ldlayer.dao;

import com.lloydfinch.bblayer.UserBean;

import java.util.ArrayList;
import java.util.List;

/**
 * 基础CRUD 这里等价于Room的Dao层，尼玛我不写了
 */
public class UserDao {

    public UserBean getUser(String id) {
        String sql = "select from table user where id = " + id;

        // TODO 从数据库查找
        return new UserBean();
    }

    public List<UserBean> getUsers() {
        String sql = "select * from table user";
        // 测试数据
        List<UserBean> userBeans = new ArrayList<>();
        userBeans.add(new UserBean());
        return userBeans;
    }

    //TODO 其他实现
}
